﻿using System;
using System.Linq;

using Fuse8.DomainFramework.Common;
using Fuse8.DomainFramework.Domain;

using Fuse8.ContentManagementFramework.Domain.Special;
using Fuse8.ContentManagementFramework.Domain.Commands.CommandParameters;

namespace Fuse8.ContentManagementFramework.Domain.Commands
{
    public abstract class CmsEntityMetaGetInformationCommand : BaseEntityParameterCommand<CmsEntityMetaInformation, CmsEntityMetaGetInformationCommandParameter>
    {
        #region IEntityCommand<CmsEntityMetaInformation> Members

        public override string CacheKey
        {
            get
            {
                return string.Format("EntityTypeKey_{0};EntityId_{1}",
                    CommandParameter.EntityTypeKey,
                    CommandParameter.EntityId.GetValueOrDefault(0));
            }
        }

        public override string CommandName
        {
            get
            {
                return "CmsEntityMetaGetInformationCommand";
            }
        }

        #endregion
    }
}
